//Place sql queries here
#define LMPINFO_TABLE_NAME "LMPINFO"
#define LMPINFO_COLUMNS    "FlagInfo INTEGER, \
                            NameFile TEXT, \
                            Regim TEXT,   \
                            XminRastr INTEGER, \
                            XmaxRastr INTEGER, \
                            YminRastr INTEGER, \
                            YmaxRastr INTEGER, \
                            XminInf   INTEGER, \
                            XmaxInf   INTEGER, \
                            YminInf   INTEGER, \
                            YmaxInf   INTEGER, \
                            Hx_Pix    FLOAT, \
                            Hy_Pix    FLOAT, \
                            CountPage INTEGER, \
                            LengthLastPage  INTEGER, \
                            LengthPage INTEGER, \
                            CoObjMax   INTEGER, \
                            MaxLengthObject INTEGER, \
                            Null_X  INTEGER, \
                            Null_Y  INTEGER, \
                            PRK BLOB,\
                            RK  BLOB,\
                            TK  BLOB,   \
                            PasportTableName  INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL \
                            "
#define PASPORT_COLUMNS    "    Free1 INTEGER,        \
                                NumBlock INTEGER,     \
                                OffInBlock INTEGER,   \
                                LenMetric INTEGER,    \
                                NumObject INTEGER,    \
                                Xmin INTEGER,         \
                                Xmax INTEGER,         \
                                Ymin INTEGER,         \
                                Ymax INTEGER,         \
                                LenLine INTEGER,      \
                                Free2 INTEGER,        \
                                Type INTEGER,         \
                                Free3 INTEGER,        \
                                Free4 INTEGER,        \
                                CountPoint INTEGER,   \
                                Width INTEGER,         \
                                Metric BLOB         \
                             "

#define CREATE_TABLE_QUERY "CREATE TABLE %s (%s);"

#define INSERT_INTO_TABLE_QUERY "INSERT INTO %s VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , \
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?, ? , ? );"

#define INSERT_INTO_TABLE_QUERY_PASPORTS "INSERT INTO %s VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , \
? , ? , ? , ? , ? , ? , ? , ?, ? );"

#define GET_PASPORT_TABLE_NAME "SELECT MAX(PasportTableName) FROM " LMPINFO_TABLE_NAME ";" 

